package org.example.travel_web.dto.category;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.example.travel_web.enums.Type;

@Data
@Schema(description = "分类请求")
public class CategoryReq {
    @Schema(description = "分类id")
    private Integer categoryId;
    @Schema(description = "分类名称")
    @NotBlank(message = "分类名称不能为空")
    private String name;
    @Schema(description = "分类类型")
    @NotNull(message = "分类类型不能为空")
    private Type type;
}
